package com.hz.ruoyistorage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hz.ruoyistorage.domain.LgColdSlot;
import com.hz.ruoyistorage.mapper.LgColdSlotMapper;
import com.hz.ruoyistorage.service.LgColdSlotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Author gj
 * @Date 2025/3/7 15:16
 * @注释
 */
@Service
public class LgColdSlotServiceImpl
        extends ServiceImpl<LgColdSlotMapper, LgColdSlot>
        implements LgColdSlotService {
    @Autowired
    private LgColdSlotMapper lgColdSlotMapper;

    @Override
    public List<LgColdSlot> getBySubId(Integer subId) {
        return lgColdSlotMapper.getAllBySubId(subId);
    }

    @Override
    public int addSlot(LgColdSlot lgColdSlot) {
        return lgColdSlotMapper.addSlot(lgColdSlot);
    }
}
